home *** CD-ROM | disk | FTP | other *** search
/ Amiga Plus 2002 #11 / Amiga Plus CD - 2002 - No. 11.iso / Tools / Development / PowerD / Pdmod / modules / arpa / ftp.m < prev    next >
Encoding:
Text File  |  2002-10-28  |  1.9 KB  |  69 lines

  1. /*
  2.  *      Definitions for FTP; see RFC-765
  3.  *
  4.  *      Copyright © 1994 AmiTCP/IP Group,
  5.  *                       Network Solutions Development, Inc.
  6.  *                       All rights reserved.
  7.  */
  8.  
  9. /*
  10.  * Reply codes.
  11.  */
  12.  
  13. #define PRELIM          1       /* positive preliminary */
  14. #define COMPLETE        2       /* positive completion */
  15. #define CONTINUE        3       /* positive intermediate */
  16. #define TRANSIENT       4       /* transient negative completion */
  17. #define ERROR           5       /* permanent negative completion */
  18.  
  19. /*
  20.  * Type codes
  21.  */
  22.  
  23. #define TYPE_A          1       /* ASCII */
  24. #define TYPE_E          2       /* EBCDIC */
  25. #define TYPE_I          3       /* image */
  26. #define TYPE_L          4       /* local byte size */
  27.  
  28. /*
  29.  * Form codes
  30.  */
  31.  
  32. #define FORM_N          1       /* non-print */
  33. #define FORM_T          2       /* telnet format effectors */
  34. #define FORM_C          3       /* carriage control (ASA) */
  35.  
  36. /*
  37.  * Structure codes
  38.  */
  39. #define STRU_F          1       /* file (no record structure) */
  40. #define STRU_R          2       /* record structure */
  41. #define STRU_P          3       /* page structure */
  42.  
  43. /*
  44.  * Mode types
  45.  */
  46.  
  47. #define MODE_S          1       /* stream */
  48. #define MODE_B          2       /* block */
  49. #define MODE_C          3       /* compressed */
  50.  
  51. /*
  52.  * Record Tokens
  53.  */
  54.  
  55. #define REC_ESC                 "\377"  /* Record-mode Escape */
  56. #define REC_EOR                 "\001"  /* Record-mode End-of-Record */
  57. #define REC_EOF                 "\002"  /* Record-mode End-of-File */
  58.  
  59. /*
  60.  * Block Header
  61.  */
  62.  
  63. #define BLK_EOR                 $80             /* Block is End-of-Record */
  64. #define BLK_EOF                 $40             /* Block is End-of-File */
  65. #define BLK_ERRORS      $20             /* Block is suspected of containing errors */
  66. #define BLK_RESTART     $10             /* Block is Restart Marker */
  67. #define BLK_BYTECOUNT   2       /* Bytes in this block */
  68.  
  69.